
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include "AboutScreen.h"
#include "SoundManager.h"
#include "MouseUtility.h"
#include "ResourceManager.h"

AboutScreen::AboutScreen(ScreenManager* _screenManager)
	:GameScreen(_screenManager)
{
	m_screenManager = _screenManager;
	m_screenState = On;
}


AboutScreen::~AboutScreen(void)
{
}

void AboutScreen::Update(float _dt)
{
}

void AboutScreen::Draw()
{
	m_glDraw.GLDrawPlane("Resource/Image/BG_About.png",
		0, 0, -1,
		(float) 10/6, 1, 0,
		1, 1, 1, 1);
}

void AboutScreen::KeyDown(int keyCode)
{
	switch(keyCode)
	{
	case 27: //esc
		MenuScreen* menuScreen;
		menuScreen = new MenuScreen(m_screenManager);
		m_screenManager->AddScreen(menuScreen);
		m_screenState = Deactive;
		break;
	default:
		break;
	}
}
void AboutScreen::MouseClick(int mouseCode)
{
	switch(mouseCode)
	{
	case 0: //left
	case 1: //right
		MenuScreen* menuScreen;
		menuScreen = new MenuScreen(m_screenManager);
		m_screenManager->AddScreen(menuScreen);
		m_screenState = Deactive;
		break;
	default:
		break;
	}

}
